package org.jeecg.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;

/**
 * @Author wt
 * @Date: 2024/9/25 11:06
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CrawlComponent implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 变量名称
     */
    @Excel(name="网站名称",width=15)
    private String name;

    /**
     * 变量类型
     */
    @Excel(name = "变量类型", width = 15,dicCode ="crawl_component_type")
    @ApiModelProperty(value = "变量类型")
    @Dict(dicCode = "crawl_component_type")
    private String type;

    /**
     * 参数
     */
    @Excel(name = "参数", width = 15,dicCode ="crawl_component_param")
    @ApiModelProperty(value = "参数")
    @Dict(dicCode = "crawl_component_param")
    private Long queryParam;

}
